<?php
defined ( 'BASEPATH' ) or exit ( 'No direct script access allowed' );
class Logout extends CI_Controller {
	/**
	 * 注销已登录信息
	 */
	public function index() {
		$jsonp = $_GET["callback"];
		$this->load->library ( 'session' );
		$this->session->unset_userdata('user_name');
		$data = array(
			'code' => '2000',
			'msg' => '已退出登录！'
		);
		echo $jsonp."(".json_encode($data).")";
	}
}
